//
//  CategoryHeaderView.m
//  JiaoX
//
//  Created by yinqy on 15/1/6.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "CategoryHeaderView.h"
@interface CategoryHeaderView()
@property(nonatomic,strong)UIImageView *imageView;
@end
@implementation CategoryHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIImageView *imageView = [[UIImageView alloc]init];
        [self addSubview:imageView];
        _imageView = imageView;
    }
    return self;
}

-(void)setImageUrl:(NSString *)url{
    [_imageView sd_setImageWithURL:[NSURL URLWithString:url]];
    [_imageView setFrame:CGRectMake(JXPublicInset, JXPublicInset, self.width-JXPublicInset*2, self.height-JXPublicInset)];
}

@end
